<?php

	//-----------------------------------------------------------------------------------
	include_once("../classes/Database.class.php");
	$db = new Database();
	//-----------------------------------------------------------------------------------

	//GENERO OPTIONS PROVEEDORES
	$data_array = $db->get_data("proveedores");	
	$data = "";
	foreach($data_array as $record){
		extract($record);
		$nombre=utf8_encode($nombre);
		if(!empty($data)) $data.=";";
		$data .= "$id:$nombre";
	}
	
	echo "ok; $data";
?>